package cn.samler.shopapi.Service;

import cn.samler.shopapi.Entity.User;
import cn.samler.shopapi.Model.Request.Order.CreateByCart;
import cn.samler.shopapi.Model.Request.Order.Goods;
import cn.samler.shopapi.Model.Request.Order.Payment;
import cn.samler.shopapi.Model.Response.Order.OrderBrief;
import cn.samler.shopapi.Model.Response.Order.OrderDetails;
import cn.samler.shopapi.Model.Sys.ServiceResult;

import java.util.List;

public interface OrderService {
    OrderDetails findById(User user, String id);

    List<OrderBrief> listOrder(User user, Integer type, int page, int pageNum);

    boolean confirmOrder(User user, String id);

    ServiceResult createByCart(User user, CreateByCart cart);

    ServiceResult createByGoods(User user, Goods goods);

    boolean payment(User user, Payment payment);
}
